const express = require('express');
const app = express();

// 处理不同的 HTTP 方法
app.get('/', (req, res) => {
    res.send('GET request received');
});

app.post('/', (req, res) => {
    res.send('POST request received');
});

app.put('/', (req, res) => {
    res.send('PUT request received');
});

app.delete('/', (req, res) => {
    res.send('DELETE request received');
});

const port = 9090;
app.listen(port, () => {
    console.log(`Server running on port ${port}`);
});
